package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.vo.PageResult;

public interface UserLikeApi {
    /**
     * 统计互相喜欢、喜欢、粉丝
     */
    Long queryEachLoveCount(Long userId);
    Long queryLoveCount(Long userId);
    Long queryFanCount(Long userId);

    /**
     * 互相喜欢、喜欢、粉丝、谁看过我
     */
    PageResult queryEachLoveList(Long userId, Integer page, Integer pagesize);
    PageResult queryLoveList(Long userId, Integer page, Integer pagesize);
    PageResult queryFanList(Long userId, Integer page, Integer pagesize);
    PageResult queryVisitorList(Long userId, Integer page, Integer pagesize);

    /**
     * 删除粉丝数据（互相喜欢）
     */
    void delete(Integer likeUserId, Long userId);

    void save(Long likeUserId, Long userId);

    PageResult likeList(Long userId, Integer page, Integer pagesize);

    boolean alreadyLike(Long userId ,Long likeUserId);
}
